﻿using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

[CustomEditor(typeof(TempleteMeshCopy), true)]
public class TempleteMeshCopyHepler : Editor
{

    private TempleteMeshCopy m_Script;

    private void Awake()
    {
        m_Script = target as TempleteMeshCopy;
    }

    public override void OnInspectorGUI()
    {
        GUILayout.BeginHorizontal();
        if (GUILayout.Button("开始转化"))
        {
            m_Script.StartToCopy();
        }
        if (GUILayout.Button("开始生成新的模板"))
        {
            m_Script.CreateNewOne();
        }
        GUILayout.EndHorizontal();
        base.OnInspectorGUI();
    }
}
